/*
 * @Author: yaoling 1871883713@qq.com
 * @Date: 2022-07-21 16:00:49
 * @LastEditors: yaoling 1871883713@qq.com
 * @LastEditTime: 2022-12-16 16:21:13
 * @Description: 组织管理
 */
import { RouteRecordRaw } from 'vue-router'
import Home from '@/views/home/index.vue'
/**
 * @desc: 组织管理
 */
const organizationRouter: Array<RouteRecordRaw> = [
  {
    path: '/organization',
    name: 'Organization',
    meta: {
      title: '组织管理',
      icon: 'iconguanli'
    },
    component: Home,
    children: [
      {
        path: '/home/staffs',
        meta: {
          title: '人员管理',
          icon: 'iconyonghugeren'
        },
        name: 'Staffs',
        component: () => import('@/views/userManagement/index.vue')
      },
      {
        path: '/home/department',
        name: 'Department',
        component: () => import('@/views/postManagement/index.vue'),
        meta: {
          title: '岗位管理',
          icon: 'icontuandui'
        }
      },
    ]
  }
]
export default organizationRouter
